﻿#include "pch.h"

CCptInfWrapper::CCptInfWrapper()
{
    memset((void *)this, 0, sizeof(CCptInfWrapper));
}

void CCptInfWrapper::printSelf(char *captionUpper, int32_t)
{
    char caption[1024];
    sprintf(caption, "%s:%s", captionUpper, "CCptInfWrapper");
    print4x(this, sizeof(CCptInfWrapper), caption);
    if (this->head)
    {
        sprintf(caption, "%s:%s", captionUpper, "CCptInfWrapper.head");
        print4x(this->head, this->len * this->size, caption);
    }
}

// sub_1001D2C0
CCptInfWrapper *CCptInfWrapper::init(TCPTINF *refInf)
{
    this->init(refInf->head, (int32_t)refInf->len, (int32_t *)refInf->num);
    return this;
};

// sub_1001DF10
CCptInfWrapper *CCptInfWrapper::init(TSTDCPTListItem *head, int32_t len, int32_t *num)
{
    this->head = (LPVOID)head;
    this->size = 24;
    this->len = len;
    this->tail = 0;
    this->needFreeHead = false;
    this->num = num;
    return this;
};
